package com.wenjiang.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author lwj
 * @since 2021-10-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class MallComment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评论id
     */
    @TableId(value = "comment_id", type = IdType.AUTO)
    private Long commentId;

    /**
     * 评论的用户的id
     */
    private Long userId;

    /**
     * 评论的商品id
     */
    private Integer goodId;

    /**
     * 评论内容
     */
    private String commentContent;

    /**
     * 评论星级
     */
    private Integer star;

    /**
     * 是否已经评论
     */
    private Integer isComment;

    /**
     * 评论热度
     */
    private String hot;

    /**
     * 评论时间
     */
    private LocalDateTime createdTime;


}
